package io.renren.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created by dell on 2021/8/12.
 */
@Data
@TableName("goods_category")
public class GoodsCategoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 种类ID
     */
    private Long categoryId;

    /**
     * 父种类ID, 一级菜单为0
     */
    private Long parentId;

    /**
     * 父种类名称
     */
    @TableField(exist = false)
    private String parentName;

    /**
     * 名称
     */
    private String label;

    /**
     * 规格
     */
    private String spec;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * ztree属性
     */

    @TableField(exist=false)
    private List<?> list;
}
